<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>资讯聚合平台</title>
    <style>
        :root {
            --primary-green: #7ED321;
            --secondary-green: #9FE870;
            --accent-yellow: #F5D544;
            --dark-gray: #2C3E50;
            --light-gray: #F8F9FA;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: linear-gradient(160deg, #f0f7ee 0%, #e6f3e7 100%);
            color: var(--dark-gray);
            overflow: hidden;
        }

        .container {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border-radius: 25px;
            padding: 40px;
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
            border: 1px solid rgba(255, 255, 255, 0.18);
            text-align: center;
            width: 100%;
            max-width: 600px;
            box-sizing: border-box;
            position: relative;
            z-index: 1;
            overflow: hidden;
        }

        h1 {
            color: var(--dark-gray);
            margin-bottom: 20px;
            font-size: 2.5em;
            font-weight: 600;
        }

        p {
            font-size: 1.2em;
            line-height: 1.6;
            color: #4b6b5c;
        }

        .button-group {
            margin-top: 30px;
        }

        .button-group a {
            display: inline-block;
            background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
            color: white;
            padding: 15px 30px;
            border: none;
            border-radius: 20px;
            font-size: 1.1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(126, 211, 33, 0.4);
            text-decoration: none;
            margin: 0 10px;
        }

        .button-group a:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(126, 211, 33, 0.6);
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>欢迎来到资讯聚合平台</h1>
        {% if messages %}
            <ul class="messages">
                {% for message in messages %}
                    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
                {% endfor %}
            </ul>
        {% endif %}
        <p>这是一个基于Django的资讯聚合平台，旨在为您提供最新、最全面的资讯内容。</p>
        <div class="button-group">
            <a href="{% url 'login' %}">登录</a>
            <a href="{% url 'register' %}">注册</a>
        </div>
    </div>
</body>
</html>